#pragma once

#include	<Net.h>
#include	<SQL.h>
#include	<Singleton.h>

class DBProxyService : public IBaseService, public ISingleton<DBProxyService> {
public:
	DBProxyService() : IBaseService("dbproxy"), _queue(32) {}
	virtual ~DBProxyService() {}

	virtual void OnReceive(Sender * sender, Protocol * msg) override;
	bool Initialize(class IniFile & conf);

private:
	SQL::Pool _queue;
};